package User;

import Book.BookList;
import Operation.IOperation;

/**
 * Description:
 * Date: 2025-10-18
 * Time: 17:41
 */
public abstract class User {
    protected String name;
    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }

    //抽象方法没有具体的方法体
    public abstract int meun();

    public void doOperation(int pos, BookList bookList) {
        this.iOperations[pos].work(bookList);
    }
}
